﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Demo07
    {
        /*
         a+b=3
        2a+b=1
        a=-2
        b=5
         */
        static void Main(string[] args)
        {
            for (int i = 1; i <=3; i++)
            {
                for (int j = 1; j <=-i+3; j++)
                {
                    Console.Write(" ");
                }
                for (int j = 1; j <=2*i-1; j++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
           
            for (int i = 1; i <=2; i++)
            {
                for (int j = 1; j <=i; j++)
                {
                    Console.Write(" ");
                }
                for (int j = 1; j <=-2*i+5; j++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
            
        }
    }
}
